var express = require('express');
var router = express.Router();
module.exports = exports = router;
var debug = require('debug')('share');

// create share
var bodyParser = require('body-parser');
router.post('/', function (req, res, next) {
    debug('post share');
    var adminId = req.session.adminId;
    if (!adminId) {
        res.status(401).send('must login first');
        return;
    }

    bodyParser.json()(req, res, function () {
        debug(req.body);

        //var adminId = req.session.adminId;
        //if (!adminId) {
        //    res.status(401).send('must login first');
        //    return;
        //}


        res.status(200).send('ok');
    });
});
